#ifndef IOCHECK
#define IOCHECK
#include <stdio.h>
#endif

#ifndef LIBCHECK
#define LIBCHECK
#include <stdlib.h>
#endif

void mallocCheck(void* mallocPointer){
if(mallocPointer == NULL){
  fprintf(stderr, "out of memory, program terminated\n");
  exit(0);
}

}
